package com.itheima.client;

import com.itheima.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value="user-service")
public interface UserClient {
@RequestMapping("/user/{id}")
    User findById(@PathVariable("id")Integer id);

}
